{template 'common/header'}
{template 'common/slide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if empty($_W['styles']['indexbgimg'])}./themes/style18/images/bg_index.jpg{else}{$_W['styles']['indexbgimg']}{/if}');background-size:cover;
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#370f05{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:98%; overflow:hidden; margin: 4.5% 0 0 3%;}
	.box .box-item{float:left; text-align:center; display:block; text-decoration:none; outline:none;width:30.9%; margin:0 2% 5% 0; height:90px; position:relative; color:#ffffff; overflow:hidden;}
	.box .box-item i{display:block; width:51px; height:51px; line-height:51px; font-size:35px; color:#FFF; overflow:hidden; margin:12px auto 2px auto;}
	.box .box-item img{display:inline-block; height:65px; margin:0 auto;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block; font-size:14px; width:100%; text-align:center; overflow:hidden; height:25px; line-height:25px;}
	.box .box-item.pic i,.box .box-item.pic span{color:#444;}
	.box ul li{background-color:#1d8090;padding:0 10px;margin:1%;display: inline-block;height:45px;width:100%;}
	.box ul li a{text-decoration: none;}
	.box .title{color:#fff;}
	.box .createtime{color:#999;font-size:12px}
	.footer{color:#ffffff;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{loop $navs $nav}
	{php if($num == 0) $bg = '#1d8090';}
	{php if($num == 1) $bg = '#4481d3';}
	{php if($num == 2) $bg = '#911b97';}
	{php if($num == 3) $bg = '#1d921e';}
	{php if($num == 4) $bg = '#c46446';}
	{php if($num == 5) $bg = '#a43553';}
	{php if($num == 6) $bg = '#8134a8';}
	{php if($num == 7) $bg = '#2559a3';}
	{php if($num == 8) $bg = '#e4e2e3';}
	<a href="{$nav['url']}" class="box-item {if $num == 8}pic{else}icon{/if}" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<img src="{$_W['attachurl']}{$nav['icon']}">
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 8) $num = 0;}
	{/loop}

	<!-- 该分类下文章-start -->
	{if $_GPC['c'] == 'site' && $_GPC['a'] == 'site'}
	<ul class="list list-unstyled">
		{data func="site_article" cid=$cid return="true" assign="result"}
			{loop $result['list'] $row}
			<li>
				<a href="{$row['linkurl']}">
					<div class="title">{php echo cutstr($row['title'],20,1);}</div>
					<div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
				</a>
			</li>
			{/loop}
	</ul>
	{/if}
	<!-- 该分类下文章-start -->
</div>
{template 'common/footer'}